package com.example.myfoodrecipe.fragments.recipe.details

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.myfoodrecipe.R
import com.example.myfoodrecipe.databinding.FragmentSummaryBinding
import org.jsoup.Jsoup


class SummaryFragment(private val summary: String) : Fragment() {
    private lateinit var binding: FragmentSummaryBinding
    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
                              savedInstanceState: Bundle?): View? {
        // Inflate the layout for this fragment
        binding = FragmentSummaryBinding.inflate(inflater)
        binding.summaryText.text = Jsoup.parse(summary).text()
        return binding.root
    }


}